// 商圈类型
export const bussinessOption = [
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:46:22',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:15:45',
    updateUser: '1543837863788879871',
    value: '1591276185086767106',
    parentId: '1591275859159986177',
    label: '金湖广场',
    dictValue: '0',
    category: 'BIZ',
    sortCode: 1,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:46:48',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:15:50',
    updateUser: '1543837863788879871',
    value: '1591276297355702273',
    parentId: '1591275859159986177',
    label: '琅东客运站',
    dictValue: '1',
    category: 'BIZ',
    sortCode: 2,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:47:45',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:15:55',
    updateUser: '1543837863788879871',
    value: '1591276536556859393',
    parentId: '1591275859159986177',
    label: '东葛园湖',
    dictValue: '2',
    category: 'BIZ',
    sortCode: 3,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:48:05',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:01',
    updateUser: '1543837863788879871',
    value: '1591276619704741890',
    parentId: '1591275859159986177',
    label: '五象湖',
    dictValue: '3',
    category: 'BIZ',
    sortCode: 4,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:48:27',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:06',
    updateUser: '1543837863788879871',
    value: '1591276712348528642',
    parentId: '1591275859159986177',
    label: '万达茂',
    dictValue: '4',
    category: 'BIZ',
    sortCode: 5,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:48:48',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1591276797346099202',
    parentId: '1591275859159986177',
    label: '南湖公园',
    dictValue: '5',
    category: 'BIZ',
    sortCode: 6,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:49:06',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:14',
    updateUser: '1543837863788879871',
    value: '1591276874449989634',
    parentId: '1591275859159986177',
    label: '北湖路',
    dictValue: '6',
    category: 'BIZ',
    sortCode: 7,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:50:42',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:19',
    updateUser: '1543837863788879871',
    value: '1591277278202081282',
    parentId: '1591275859159986177',
    label: '大沙田',
    dictValue: '7',
    category: 'BIZ',
    sortCode: 8,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:51:14',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1591277411627085826',
    parentId: '1591275859159986177',
    label: '银海大道',
    dictValue: '8',
    category: 'BIZ',
    sortCode: 9,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:51:31',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1591277484117241858',
    parentId: '1591275859159986177',
    label: '仙葫大道',
    dictValue: '9',
    category: 'BIZ',
    sortCode: 10,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:51:50',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1591277563012100098',
    parentId: '1591275859159986177',
    label: '五合大学城',
    dictValue: '10',
    category: 'BIZ',
    sortCode: 11,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:52:15',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:27',
    updateUser: '1543837863788879871',
    value: '1591277668146524162',
    parentId: '1591275859159986177',
    label: '万象城',
    dictValue: '11',
    category: 'BIZ',
    sortCode: 12,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:52:31',
    createUser: '1543837863788879871',
    updateTime: '2023-01-03 17:16:36',
    updateUser: '1543837863788879871',
    value: '1591277734437498881',
    parentId: '1591275859159986177',
    label: '朝阳广场',
    dictValue: '12',
    category: 'BIZ',
    sortCode: 13,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:52:53',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1591277826754129922',
    parentId: '1591275859159986177',
    label: '江南万达',
    dictValue: '13',
    category: 'BIZ',
    sortCode: 14,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2024-02-02 17:54:04',
    createUser: '1543837863788879871',
    updateTime: '2024-02-02 17:54:15',
    updateUser: '1543837863788879871',
    value: '1753356098653392897',
    parentId: '1591275859159986177',
    label: '南宁火车站',
    dictValue: '14',
    category: 'BIZ',
    sortCode: 15,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2024-02-02 17:54:45',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value: '1753356269755830274',
    parentId: '1591275859159986177',
    label: '南宁火车东站',
    dictValue: '15',
    category: 'BIZ',
    sortCode: 16,
    extJson: null
  }
]
// 商户类型
export const antMerType = [
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:40:58',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value1: '1591274826681724929',
    parentId: '1591274210270031873',
    label: '酒店',
    value: '0',
    category: 'BIZ',
    sortCode: 1,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:41:12',
    createUser: '1543837863788879871',
    updateTime: '2022-11-12 11:41:38',
    updateUser: '1543837863788879871',
    value1: '1591274884735086594',
    parentId: '1591274210270031873',
    label: '美食',
    value: '1',
    category: 'BIZ',
    sortCode: 2,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:41:28',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value1: '1591274955383943169',
    parentId: '1591274210270031873',
    label: '娱乐',
    value: '2',
    category: 'BIZ',
    sortCode: 3,
    extJson: null
  },
  {
    deleteFlag: 'NOT_DELETE',
    createTime: '2022-11-12 11:41:55',
    createUser: '1543837863788879871',
    updateTime: null,
    updateUser: null,
    value1: '1591275064897220609',
    parentId: '1591274210270031873',
    label: '综合',
    value: '3',
    category: 'BIZ',
    sortCode: 4,
    extJson: null
  }
]

export const getParams = (obj) => {
  let result = ''
  let item
  for (item in obj) {
    if (obj[item] && String(obj[item])) {
      result += `&${item}=${obj[item]}`
    }
  }
  if (result) {
    result = '?' + result.slice(1)
  }
  return result
}
